<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>login</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<script type="text/javascript">
	function loadimage(){
		document.getElementById("randImage").src="<%=basePath%>images/image.jsp?"+Math.random();
	}
</script>
</head>

<body>
	<center>
		<table width="90%" height="100%" border="0" align="center">
			<tr>
				<td><img src="images/head.png" width="100%" height="100%" />
				</td>
			</tr>
			<tr>
				<td bgcolor="#FOFOFO"><font size="5" face="楷体">欢迎登录:<br>万达信息xxx管理系统</font>

					<table align="center" border="0" bgcolor="#AOAOAO">
						<tr>
							<td width="500" height="350">

								<center>
									<h1>用户登录</h1>
									<form action="user?action=login" method="post">
										<table border="0" bgcolor="#AOAOAO">
											<tr>
												<td align="right">账号：</td>
												<td align="left"><input type="text" name="account" /></td>
											</tr>
											<tr>
												<td align="right">密码：</td>
												<td align="left"><input type="text" name="password" />
												</td>
											</tr>
											<tr>
												<td align="right">验证码：</td>
												<td align="left">
																	
												
												<input type="text" id="imageCode" name="imageCode" />
													<img alt="验证码"
														id="randImage"
														name="randImage"
														onclick="javascript:loadimage();"
														title="换一张试试" 
														width="60" height="20" border="1" align="absmiddle"
														src="<%=basePath%>images/image.jsp" />
												</td>
											</tr>
											<tr>
												<td align="right">记住我：</td>
												<td align="left"><input type="checkbox" name="rememberMe" />
												</td>
											</tr>
											<tr>
												<td colspan="2" align="center"><input type="submit"
													value="登录"> <input type="reset" value="重置">
												</td>
											</tr>
										</table>
									</form>
								</center>
								<P align="center">
								<font color="red" > 
									<%
								  	Object obj =  request.getAttribute("error");
								 	 if(null != obj){
									  out.println(obj.toString());
								  	}
								  	%> 
							  	</font>
							  	</p>
							</td>
						</tr>
					</table>
				 <br> <br> <br> <br> <br> <br>
				</td>
			</tr>
		</table>
	</center>
</body>
</html>